﻿using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Hicap.AuthorizationServer.Core.Models.Other;

namespace Hicap.AuthorizationServer.Application.Dto
{
    public class RoleEditDto : FullAuditedEntityDto<int?>
    { /// <summary>
      /// 角色id
      /// </summary>
        [Required]
        [StringLength(EntityLengthConst.ShortCode)]
        public string RoleCode { get; set; }

        /// <summary>
        /// 角色名
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.ShortName)]
        public string RoleName { get; set; }

        public int? ParentRoleId { get; set; }

        public bool IsActive { get; set; }
    }
}